﻿using System.Collections.Generic;
using Longtop.Web.Helpers;
using Longtop.Web.WebSite.Models;
using Longtop.Web.SaleWeb.Models;
using Longtop.Web.WebSite.Shared;
using Longtop.Web.WebSite.Account;

namespace Longtop.Web.SaleWeb.Admin.Sales {
    //public class IndexModel : WebSite.Admin.Shared.IndexMasterModel {
    //}
    public class CreateModel : WebSite.Admin.Shared.CreateMasterModel {
        //public CreateModel(int? departmentId) {
        //    this.Lable = Lable.Find(departmentId ?? Lable.DepartmentDefaultId);
        //    this.OperateMessage = "为部门 [" + this.Lable.Text + "] 新增业绩";
        //}
        public Sale Model { get; set; }
        public RegisterModel AccountRegisterModel { get; set; }
    }

    public class EditModel : WebSite.Admin.Shared.CreateMasterModel {
        public Sale Model { get; set; }
        
    }

    //public class CreateModel : WebSite.Admin.Shared.CreateMasterModel
    //{
    //    //public CreateModel(int? departmentId) {
    //    //    this.Lable = Lable.Find(departmentId ?? Lable.DepartmentDefaultId);
    //    //    this.OperateMessage = "为部门 [" + this.Lable.Text + "] 新增业绩";
    //    //}
    //    public Sale Model { get; set; }
    //    public RegisterModel AccountRegisterModel { get; set; }
    //}
    public class ListModel : WebSite.Admin.Shared.ListMasterModel, IPagedModel<Sale>
    {

        public ListModel()
        {

            PageSize = 10;
        }

        public PagedList<Sale> PagedList
        {
            get;
            set;
        }
        public int PageSize
        {
            get;
            set;
        }
    }


}

